<?php


namespace catchAdmin\contract\request;


use think\Validate;

class ContractRequest extends Validate
{
    protected $rule = [
        'his_id|患者ID' => [
            'require'
        ],
        'contract_date|签约日期' => [
            'require',
            'date'
        ],
        'contract_doctor|签约医生' => [
            'require',
            'array'
        ],
        'inform_doctor|通知医生' => [

        ],
        'service_info|服务项目' => [
            'require'
        ],
        'service_start_date|服务开始时间' => [
            'require',
            'date',
            'egt:contract_date'
        ],
        'service_end_date|服务结束时间' => [
            'require',
            'date',
            'egt:service_start_date'
        ],
        'notice_type|通知方式' => [
            'require',
            'in:all,app,sms'
        ]
    ];

    protected $scene = [
        'create' => ['his_id', 'contract_date', 'contract_doctor', 'inform_doctor', 'service_info', 'service_start_date', 'service_end_date', 'notice_type']
    ];

}